package com.dc.service;

import com.dc.po.IpLog;
import com.dc.vo.IpCount;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author xingzq
 * @version 1.0
 * @date 2022/2/15 11:23
 */
public interface IpLogService {

    IpLog saveIpLog(IpLog ipLog);

    void deleteIpLog(Long id);

    Page<IpLog> listIpLog(Pageable pageable);

    Long countByIp(String ip);//计算每个ip访问总次数

    List<IpCount> countIpByGroup();

}
